package com.ying.controller.errors;

public enum ErrorCode {
    system_error(0, "系统错误"),
    invalid_params(1, "非法参数"),
    ;

    private ErrorCode(int code, String message) {
        this.code = code + offset;
        this.message = message;
    }

    private int code;
    private String message;
    private static final int offset = 50000;

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
